package com.zbkj.admin.request;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 秒杀商品添加请求对象
 * </p>
 *
 * @author HZW
 * @since 2022-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(description = "SeckillProductAddRequest对象 秒杀商品添加请求对象")
public class SeckillProductAddRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "秒杀活动ID", required = true)
    @NotNull(message = "请选择秒杀活动")
    private Integer id;

    @Schema(description = "是否自动审核", required = true)
    private Boolean audit;

    @Schema(description = "秒杀商品积分")
    private BigDecimal points;

    @Schema(description = "小程序秒杀区轮播图")
    private String seckillSlider;

    @Schema(description = "秒杀商品列表")
    @NotEmpty(message = "请选择商品")
    private List<SeckillActivityProductRequest> productList;
}
